package com.cuiweiyou.gimmick;

import java.util.List;

public class GimmickBean {
    private String index;
    private String gimmick;
    private List<String> othersideIndexList;
    private List<String> nextIndexList;
    private String side; // 回复的-M，对方提问的-O

    public GimmickBean() {
    }

    public GimmickBean(String index, String gimmick, List<String> othersideIndexList, List<String> nextIndexList,String side) {
        this.index = index;
        this.gimmick = gimmick;
        this.othersideIndexList = othersideIndexList;
        this.nextIndexList = nextIndexList;
        this.side = side;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getGimmick() {
        return gimmick;
    }

    public void setGimmick(String gimmick) {
        this.gimmick = gimmick;
    }

    public List<String> getOthersideIndexList() {
        return othersideIndexList;
    }

    public void setOthersideIndexList(List<String> othersideIndexList) {
        this.othersideIndexList = othersideIndexList;
    }

    public List<String> getNextIndexList() {
        return nextIndexList;
    }

    public void setNextIndexList(List<String> nextIndexList) {
        this.nextIndexList = nextIndexList;
    }

    public String getSide() {
        return side;
    }

    public void setSide(String side) {
        this.side = side;
    }

    @Override
    public boolean equals(Object o) {
        GimmickBean tmp = (GimmickBean) o;
        String tmpIndex = tmp.getIndex();

        return tmpIndex.equals(getIndex());
    }

    @Override
    public String toString() {
        return "GimmickBean{" +
                "index='" + index + '\'' +
                ", gimmick='" + gimmick + '\'' +
                ", othersideIndexList=" + othersideIndexList +
                ", nextIndexList=" + nextIndexList +
                ", side=" + side +
                '}';
    }
}
